package malloc;
//重置排列数组
public class basic1470 {

    public int[] shuffle(int[] nums, int n) {
        int[] newarr = new int[n * 2];
        for (int i = 0; i < n; i++) {
            newarr[i*2]=nums[i];
            newarr[i*2+1]=nums[i+n];
        }
        return  newarr;
    }

    public static void main(String[] args) {
        basic1470 basic1470 = new basic1470();
        int[] shuffle = basic1470.shuffle(new int[]{2, 3, 4, 5}, 2);
        for (int a :
                shuffle) {
            System.out.println(a);


        }

    }
}
